package com.cloudpan.service.impl;


import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.cloudpan.entity.bo.SysFindFriendBo;
import com.cloudpan.entity.pojo.SysUserFriend;
import com.cloudpan.entity.vo.SysFriendVo;
import com.cloudpan.mapper.SysUserFriendMapper;
import com.cloudpan.mapper.SysUserInfoMapper;
import com.cloudpan.service.SysUserFriendService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

/**
 * @Author sc
 * @DATE 2023/11/8 12:46
 * @Description:
 * @Version 1.0
 */
@Service
@RequiredArgsConstructor
public class SysUserFriendServiceImpl extends ServiceImpl<SysUserFriendMapper, SysUserFriend> implements SysUserFriendService {

    private final SysUserFriendMapper sysUserFriendMapper;

    private final SysUserInfoMapper sysUserInfoMapper;

    @Override
    public List<SysFriendVo> getFriendList(String id){
        return sysUserFriendMapper.getByFriends(id);
    }

    @Override
    public List<SysFriendVo> findList(SysFindFriendBo friendDto) {
        List<SysFriendVo> list =  sysUserInfoMapper.findList(friendDto);
        return list;
    }

}
